package net.oschina.kjtang.qywx.api.service;

import net.oschina.kjtang.qywx.api.entity.Department;
import net.oschina.kjtang.qywx.common.exception.RCodeException;
import net.oschina.kjtang.qywx.common.service.BaseService;

import java.util.List;

/**
 * Created by kaijun on 2017/12/2.
 */
public interface WxDepartmentService extends BaseService<Department>{

    public int addDepartment(Department department,String accessToken) throws RCodeException;

    public void updateDepartment(Department department,String accessToken) throws RCodeException;

    public void deleteDepartment(String departId,String accessToken) throws RCodeException;

    public List<Department> getDepartmentList(String departId,String accessToken) throws RCodeException;

}
